<include file="Public/common" />
<block>

    <style>
        .col-xs-3{margin-top:5px;}
        th{text-align: center;}
    </style>
</block>
<block name="content">
    <div class="page-header"><h1>首页 &gt;财务管理 > 团号订单详情</h1></div>

    <div class="col-xs-12"  style="margin-top:10px;">
        <button class="btn btn-primary btn-xs pull-right" type="button" id="dropdownMenu1" data-toggle="dropdown">
            筛选
            <span class="caret"></span>
        </button>
        <ul class="dropdown-menu pull-right" role="menu" aria-labelledby="dropdownMenu1" style="padding:10px;">
          <!--  <li><input type="checkbox" class="filtrate" checked value="1" id="filtrate_1"> <label for="filtrate_1">ID</label> </li>-->
            <li><input type="checkbox" class="filtrate"checked value="2" id="filtrate_2"><label for="filtrate_2">订单号</label></li>
            <li><input type="checkbox" class="filtrate"checked value="3" id="filtrate_3"><label for="filtrate_3">游客姓名</label></li>
            <li><input type="checkbox" class="filtrate"checked value="4" id="filtrate_4"><label for="filtrate_4">联系方式</label></li>
            <li><input type="checkbox" class="filtrate"checked value="5" id="filtrate_5"><label for="filtrate_5">线路名称</label></li>
            <li><input type="checkbox" class="filtrate"checked value="6" id="filtrate_6"><label for="filtrate_6">线路编号</label></li>
            <li><input type="checkbox" class="filtrate"checked value="7" id="filtrate_7"><label for="filtrate_7">出发地</label></li>
            <li><input type="checkbox" class="filtrate"checked value="8" id="filtrate_8"><label for="filtrate_8">行程天数</label></li>
            <li><input type="checkbox" class="filtrate"checked value="9" id="filtrate_9"><label for="filtrate_9">总人数</label></li>
            <li><input type="checkbox" class="filtrate"checked value="10" id="filtrate_10"><label for="filtrate_10">人数明细</label></li>
            <!--<li><input type="checkbox" class="filtrate"checked value="11" id="filtrate_11"><label for="filtrate_11">结算金额</label></li>-->
            <li><input type="checkbox" class="filtrate"checked value="12" id="filtrate_12"><label for="filtrate_12">状态</label></li>
            <li><input type="checkbox" class="filtrate"checked value="13" id="filtrate_13"><label for="filtrate_13">审核人</label></li>
        </ul>
        <a class="btn btn-primary btn-xs pull-right" href="{:U('exportGroupOrderList',array('id'=>I('id')))}" style="margin-right: 10px">导出</a>
    </div>

    <table class="table table-striped table-bordered table-hover table-condensed text-center">
        <thead>
            <tr>
               <!-- <th class="filtrate_1">ID <input type="checkbox" class="checkAll"></th>-->
                <th class="filtrate_2">订单号</th>
                <th class="filtrate_3">游客姓名</th>
                <th class="filtrate_4">联系方式</th>
                <th class="filtrate_5">线路名称</th>
                <th class="filtrate_6">线路编号</th>
                <th class="filtrate_7">出发地</th>
                <th class="filtrate_8">行程天数</th>
                <th class="filtrate_9">总人数</th>
                <th class="filtrate_10">人数明细</th>
               <!-- <th class="filtrate_11">结算金额</th>-->
                <th class="filtrate_12">状态</th>
                <th class="filtrate_13">审核人</th>
            </tr>
        </thead>
        <tbody>
            <volist name="list" id="vo">
                <tr>
                  <!--  <td class="filtrate_1" >001 <input type="checkbox" class="chk"></td>-->
                    <td class="filtrate_2">{$vo.order_num}</td>
                    <td class="filtrate_3">{$vo.tourists_name}</td>
                    <td class="filtrate_4">{$vo.tourists_phone}</td>
                    <td class="filtrate_5">{$vo.line_name}</td>
                    <td class="filtrate_6"> {$vo.line_sn}</td>
                    <td class="filtrate_7">{$vo.starting}</td>
                    <td class="filtrate_8">{$vo.travel_days}</td>
                    <td class="filtrate_9">{$vo.total_num}</td>
                    <td class="filtrate_10">成{$vo.adult_num},儿{$vo.child_num},老{$vo.oldMan_num}</td>
                    <td class="filtrate_12">{$vo.groupStatusName}</td>
                    <td class="filtrate_13">{$vo.operator_name}</td>
                </tr>
            </volist>
            <tr>
                <td colspan="11">
                <!--分页样式-->
                    <ul class="pagination">
                        {$show}
                    </ul>
                </td>
            </tr>
        </tbody>
    </table>

</block>
<block name="js">


<script>
/**
 * 打开订单详情页面
 * @param  {[int]}    orderId     [订单id]
 */

//筛选显示
$('body').on('change','.filtrate',function () {
   var id=$(this).val();
   if($(this).is(':checked')){
        $('.filtrate_'+id).show();
   }else{
       $('.filtrate_'+id).hide();
   }
});



/**
 *订单详情
 * @param orderId
 */

function openDetail(orderId){
    layer.open({
        type: 2,
        offset:20,
        area: ['90%','90%'],
        title: '订单详情',
        content: '{:U("Orders/detail")}',
    })
}
</script>
</block>
